package com.aistar.line.vo;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: java类作用描述:
 * @Author: tyg
 * @CreateDate: 2019/7/3 0003
 * @Version: 1.0
 */
public class Reserve implements Serializable{
    private String lineId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

    private Integer peoples;

    public Reserve() {
    }

    public Reserve(String lineId, Date date, Integer peoples) {
        this.lineId = lineId;
        this.date = date;
        this.peoples = peoples;
    }

    public String getLineId() {
        return lineId;
    }

    public void setLineId(String lineId) {
        this.lineId = lineId;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getPeoples() {
        return peoples;
    }

    public void setPeoples(Integer peoples) {
        this.peoples = peoples;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Reserve{");
        sb.append("lineId='").append(lineId).append('\'');
        sb.append(", date=").append(date);
        sb.append(", peoples=").append(peoples);
        sb.append('}');
        return sb.toString();
    }
}
